//手机号验证
export function checkNum(tel){
    let regTel=/^[1]([3-9])[0-9]{9}$/;
    let telLength=/^\w{1,20}$/
   if(regTel.test(tel)&&telLength.test(tel)){
      return true 
   }else{
       return false
   }
}
//身份证号验证
export function checkId(id){
    let regId= /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
   if(regId.test(id)){
      return true 
   }else{
       return false
   }
}